<template>
  <div class="promptBox">
    <div class="tips flex-start">
      <div class="pic ">
        <img src="@/assets/prompt.png" alt="" />
      </div>
      <div class="title">是否删除该文档?</div>
    </div>
    <div class="btns flex-start">
      <div class="cancel"  @click="cancel">取消</div>
      <div class="determine" @click="confirm">确定</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    cancel () {
      this.$emit('cancel')
    },
    confirm () {
      this.$emit('confirm')
    }

  }
}
</script>

<style lang="scss" scoped>
.promptBox {
  width: 213px;
  height: 88px;
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(24, 33, 56, 0.28);
  border-radius: 8px;
  position: absolute;
  top: -83px;
  left: 42px;
  z-index: 99;
  .tips {
    height: 22px;
    line-height: 22px;
    margin-top: 16px;
    .pic {
      width: 14px;
      height: 14px;
      margin-left: 16px;
      img {
        width: 100%;
         margin-bottom: 4px;

      }
    }
    .title {
      display: inline-block;
      height: 22px;
      margin-left: 8px;
      line-height: 22px;
      // vertical-align: top;
    }
  }
  .btns {
    margin-top: 13px;

    .cancel {
      margin-left: 91px;
      width: 49px;
      text-align: center;
      line-height: 22px;
      height: 24px;
      opacity: 1;
      background: #ffffff;
      border: 1px solid #c6ccd7;
      border-radius: 5px;
    }
    .determine {
      margin-left: 8px;
      width: 49px;
      height: 24px;
      opacity: 1;
      background: #304eec;
      border-radius: 4px;
      text-align: center;
      line-height: 22px;
      color: #fff;
    }
  }
  &::after{
      display: inline-block;
      content: '';
      width: 0;
      height: 0;
      border: 8px solid transparent;
      border-top: 8px solid #fff;
      position: absolute;
      bottom: -16px;
      right: 16px;

  }
}
</style>
